package com.flx.at.spring.code.test.testfactorybean;

import com.flx.at.spring.code.test.testfactorybean.component.MyFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 18:09
 * @Description:
 *
 * FactoryBean接口实现组件注册，使用于创建初期需要设置大量内容场景
 *
 */
@Configuration
public class FactoryBeanConfig {

    @Bean
    public MyFactoryBean myFactoryBean(){
        return new MyFactoryBean();
    }

}
